import request from './request'

// 获取产品详情
export function getProductDetail(id) {
  return request.get(`/api/products/${id}`)
}

// 获取产品价格选项
export function getProductPricing(id) {
  return request.get(`/api/products/${id}/pricing`)
}

// 创建订单
export function createOrder(data) {
  return request.post('/api/orders', data)
}

// 获取支付链接
export function WechatPay(data) {
  return request.post('/api/payments/wechat',data)
}
